//**************************************************************************
//       Car.java             Author:20172330
//   
//       Something about car
//**************************************************************************
public class Car
{
     private String name;
     private String num;
     private int date;

     public Car(String a,String b,int c)
     {   
        name = a;
        num = b;
        date = c;
     }

     public String getName()
     { 
        return name;
     }
     public void setName(String nameAlt) {  name = nameAlt;   }

     public String getNum()
     {
        return num;
     }
     public void setNum(String numAlt) {  num = numAlt;   }

     public int getDate()
     {
        return date;
     }
     public void setDate(int dateAlt) {  date = dateAlt;   }

     public String toString()
     {
        return name + "\t" + num + "\t" + date;
     }
     boolean isAntique()
     {
        boolean result;
        if (2018 - date > 45)
           result = true;
        else
           result = false;
        return result;
     }
}
